import random


# baseName = '炒饭'
# 基础食材
proteins = ['鸡肉', '牛肉', '猪肉', '羊肉', '鸭肉', '虾仁', '鱼肉', '海鲜', '素肉', '蟹肉', '鹅肉', '鸽肉', '鳗鱼', '牛肚', '鸭血']
vegetables = ['黄瓜', '胡萝卜', '茄子', '菠菜', '花菜', '蒜蓉', '酸菜', '青椒', '香葱', '香菇', '豆芽', '豆腐', '白菜', '冬笋', '山药', '紫甘蓝', '韭菜']
flavors = ['香辣', '麻辣', '蒜香', '黑椒', '红油', '酸辣', '椒盐', '花生酱', '甜辣', '五香', '孜然', '香茅', '青椒', '干锅']
regional = ['四川', '北京', '湘菜', '川香', '粤菜', '东北', '杭州', '江西', '鲁菜', '陕西', '福建', '云南', '山西', '台湾']

# 生成菜品名称
def generate_dish_name(baseName):
    protein = random.choice(proteins)
    vegetable = random.choice(vegetables)
    flavor = random.choice(flavors)
    region = random.choice(regional)

    # 拼接菜品名称
    name = f"{flavor}{protein}{vegetable}{baseName}"
    return name


# # 生成1000个菜品名称
# dish_names = [generate_dish_name() for _ in range(1000)]
#
# # 打印前10个菜品名称
# for dish in dish_names[:10]:
#     print(dish)

# 如果需要输出到文件，可以使用：
# with open("dish_names.txt", "w", encoding="utf-8") as f:
#     for dish in dish_names:
#         f.write(dish + "\n")
